package com.sun.test.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName users
 */
@TableName(value ="users")
@Data
public class Users implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "用户id")
    private Integer id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    @Schema(description = "用户姓名")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "gender")
    @Schema(description = "用户性别")
    private Object gender;

    /**
     * 年龄
     */
    @TableField(value = "age")
    @Schema(description = "用户年龄")
    private Integer age;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @Schema(description = "用户邮箱")
    private String email;

    /**
     * 电话
     */
    @TableField(value = "phone")
    @Schema(description = "用户电话")
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", gender=").append(gender);
        sb.append(", age=").append(age);
        sb.append(", email=").append(email);
        sb.append(", phone=").append(phone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}